package mastermind.gui.actions;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import mastermind.gui.Frame;
import mastermind.gui.SettingsFrame;

public class SettingsAction extends AbstractAction{

	private Frame mainFrame;
	
	public SettingsAction(Frame frame) {
		
		this.mainFrame = frame;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		
		SettingsFrame frame = new SettingsFrame(mainFrame); //show settings frame
		frame.setVisible(true);
	}

}
